﻿namespace Cavy.UdpClient
{
    public interface IMessage
    {
        public int MessageType { get; }
        public void Serialize(Serializable.NetDataWriter writer);
        public void Deserialize(Serializable.NetDataReader reader);
        public void AnalysisData(MessageFactory factory, IpEndPoint endPoint);
    }
}